package com.ruoyi.experiment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 实验设计对象 experiment_design
 * 
 * @author gw
 * @date 2025-01-08
 */
public class ExperimentDesign extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 实验设计ID */
    private Long designId;

    /** 实验ID */
    @Excel(name = "实验ID")
    private Long experimentId;

    //实验名称
    private String experimentName;

    /** 实验设计名称 */
    @Excel(name = "实验设计名称")
    private String designName;

    /** 实验设计描述 */
    @Excel(name = "实验设计描述")
    private String designDescription;

    /** 遵循“3R原则” */
    @Excel(name = "遵循“3R原则”")
    private Integer threeRPrinciples;

    /** 动物数量 */
    @Excel(name = "动物数量")
    private Integer animalCount;

    /** 动物种类ID */
    @Excel(name = "动物种类ID")
    private Long speciesId;

    private String speciesName;

    /** 删除人 */
    private String deleteBy;

    /** 删除时间 */
    private Date deleteTime;

    /** 版本号，用于乐观锁控制 */
    private Long version;

    /** 删除标记（0-未删除（默认），1-已删除） */
    private Integer delFlag;

    public String getExperimentName() {
        return experimentName;
    }

    public void setExperimentName(String experimentName) {
        this.experimentName = experimentName;
    }

    public Integer getThreeRPrinciples() {
        return threeRPrinciples;
    }

    public void setThreeRPrinciples(Integer threeRPrinciples) {
        this.threeRPrinciples = threeRPrinciples;
    }

    public String getSpeciesName() {
        return speciesName;
    }

    public void setSpeciesName(String speciesName) {
        this.speciesName = speciesName;
    }

    public void setDesignId(Long designId)
    {
        this.designId = designId;
    }

    public Long getDesignId() 
    {
        return designId;
    }
    public void setExperimentId(Long experimentId) 
    {
        this.experimentId = experimentId;
    }

    public Long getExperimentId() 
    {
        return experimentId;
    }
    public void setDesignName(String designName) 
    {
        this.designName = designName;
    }

    public String getDesignName() 
    {
        return designName;
    }
    public void setDesignDescription(String designDescription) 
    {
        this.designDescription = designDescription;
    }

    public String getDesignDescription() 
    {
        return designDescription;
    }
    public void setAnimalCount(Integer animalCount) 
    {
        this.animalCount = animalCount;
    }

    public Integer getAnimalCount() 
    {
        return animalCount;
    }
    public void setSpeciesId(Long speciesId) 
    {
        this.speciesId = speciesId;
    }

    public Long getSpeciesId() 
    {
        return speciesId;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("designId", getDesignId())
            .append("experimentId", getExperimentId())
            .append("designName", getDesignName())
            .append("designDescription", getDesignDescription())
            .append("threePrinciples", getThreeRPrinciples())
            .append("animalCount", getAnimalCount())
            .append("speciesId", getSpeciesId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
